<dl class="memberwlist">
	<?php foreach ($worklist as $key => $work):?>
	<dt class="right">
		<div class="info">
			<h1>主题：<?=$work['title']?></h1>
			<div class="pubtime">发布：<?=$work['puttime']?></div>
			<div class="story editable">
				<div class="editthis"></div>
				<h2>故事</h2>
				<div class="content"  style="display:none">
                	 <?=$work['content']?>
				</div>
                <div class="subcontent">
                    <?=utf8_substr($work['content'],90)?>
				</div>
			</div>
            <div class="showmore" >展开>></div>
		</div>
		<div class="memberico">
			<div class="icos ani" data-mid="<?=$work['mid']?>" data-id="<?=$work['id']?>">
				<div class="iline"><a href="javascript:" class="ico icosupport"><span><?php echo $work['goodnum'];?></span></a></div>
				<div class="iline"><a href="javascript:" class="ico icolike"><span><?php echo $work['watchnum'];?></span></a></div>
				<div class="iline"><a href="javascript:" class="ico icocomment"><span><?php echo $work['commnum'];?></span></a></div>
				<div class="iline"><a href="javascript:" class="ico icoview"><span><?php echo $work['viewnum'];?></span></a></div>
				<div class="iline last"><span class="ico icoshare" data-url="<?=$work['href'];?>" data-title="<?=$work['title'];?>" data-picture="<?=site_url($work['image']);?>" data-summary="<?=utf8_substr($work['summary'],50)?>"><span><?php echo $work['shares'];?></span></span></div>
			</div>
		</div>
	</dt>
	<dd class="left images">
		<div class="view"><a href="<?=$work['image']?>" class="fancybox" data-fancybox-group="work<?=$work['id']?>" ><img src="<?=$work['image']?>" onload="OverImage(this,400,300)"  /></a></div>
		<div class="list">
			<ul>
				<?php if(isset($work['images'])):foreach ($work['images'] as $key => $value):if($value['image']==$work['image'])continue;?>
					<li><a href="<?=$value['image']?>" class="fancybox" data-fancybox-group="work<?=$work['id']?>"><img src="<?=$value['image']?>" onload="OverImage(this,90,73)" alt="<?=$value['desc']?>" /></a></li>
				<?php endforeach;endif;?>
			</ul>
		</div>
	</dd>
	<dd class="left comment">
	<div class="commentform">
		<div class="clearfix info">
			<a class="right" href="javascrit:">展开更多>></a>
			<h3 class="left">评论</h3>
			<span class="left commnum" action="<?=site_url('space/comment/'.$work['id'])?>"><?=$work['commnum']?></span>
			</div>
			<form name="memberComment" class="commentForm" method="post" action="<?=site_url('space/workcomm/'.$work['mid'].'/'.$work['id'])?>" >
			<textarea name="content" placeholder="说点什么吧"></textarea>
			<input type="submit" class="subbtn" value="点评作品" />
		</form>
	</div>
	<div class="commentlist">
    	<ul>
			<?php if($work['comms']):?>
                <?php foreach ($msglist as $key => $msg):?>
                    <li>
                    <a class="avatar" href="<?=site_url('space/'.$msg['mid'])?>"><img src="<?=$msg['avatar']?>" alt="<?=empty($msg['mnick'])?$msg['mname']:$msg['mnick']?>"/></a>
                    <a class="name" href="<?=site_url('space/'.$msg['mid'])?>"><?=empty($msg['mnick'])?$msg['mname']:$msg['mnick']?></a>
                    <div class="msgcont"><?=$msg['content']?></div>
                    <div class="info"><?=date('Y.m.d H:i',$msg['puttime'])?></div>
                    </li>
                <?php endforeach;?>
                <?php endif;?>
        </ul>
	</div>
	</dd>
	<?php endforeach;?>
</dl>